using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Collections;
using System.Collections.Specialized;

namespace UMC.Web
{
    /// <summary>
    /// 评论对话框
    /// </summary>
    public class UICommentDialog : UIDialog
    {

        /// <summary>
        /// 对话框类型
        /// </summary>
        protected override string DialogType
        {
            get { return "Comment"; }
        }
        /// <summary>
        /// 评论底部提示
        /// </summary>
        public string BottomText
        {

            get
            {
                return this.Config["BottomText"];
            }
            set
            {

                this.Config.Put("BottomText", value);

            }
        }

        /// <summary>
        /// 是否支持上传图标
        /// </summary>
        public bool IsPicture
        {

            get
            {
                return this.Config.ContainsKey("IsPicture");
            }
            set
            {
                if (value)
                {
                    this.Config.Put("IsPicture", true);
                }
                else
                {

                    this.Config.Remove("IsPicture");
                }
            }
        }
    }
}
